package com.ssm.mall.controller;


import com.ssm.mall.common.Res;
import com.ssm.mall.dao.entity.User;
import com.ssm.mall.service.CategoryService;
import com.sun.xml.internal.bind.v2.runtime.reflect.opt.Const;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpSession;

@Controller
@RequestMapping(value = "category",method = RequestMethod.POST)
public class CategoryAdminController {
    @Autowired
    CategoryService categoryService;
    public @ResponseBody Res addCategpry(@RequestParam()Integer parentId,
                                         String categoryName, HttpSession session){
       return null;
    }
}
